package cn.gok.manage.service;

import cn.gok.pojo.Product;
import cn.gok.util.ResultData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.Reader;

/**
 * @author: 鸭鸭
 * @ClassName:IProductService
 * @Package:cn.gok.gokhappymall.manage.service
 * @Description:
 * @date: 2021/8/3
 * @time: 16:35
 */
public interface IProductService {
    /**
     * 查询所有的商品
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResultData getAllProducts(int pageNum, int pageSize);

    ResultData getProductsByIdAndName(Integer id,String name);

    ResultData getProducttById(Integer id);

    ResultData updateProductStatus(Integer id,Integer status);

    ResultData insertProduct(Product product);

   ResultData insert_Product(Product product);


    ResultData updatePhoto(MultipartFile mf, String desc, HttpServletRequest httpServletRequest);

    ResultData selectProductByKeyWord(String keyword,int categoryId,int pageNum,int pageSize,String orderByName);
}
